@extends('user.base')
@section('title', '题库中心')
@section('content')
<div class="layui-col-md10" style="padding: 0 0 0 15px">



            <!--习题集方块结束-->
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-xs12 layui-col-md12">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    我的收藏
                                </div>
                                <div class="layui-card-body">
                                    <ul class="dhbwl-list">
                                        @foreach($favors as $val)
                                        <li>
                                            <h2>
                                                <span class="layui-badge layui-bg-red">收藏</span>
                                                <a>{{$val->questions->question ?? 'No Question'}}</a>

                                            </h2>
                                            <div class="dhbwl-list-badge">
                                                <a href="" class="layui-badge dhbwl-bg-blue layui-btn">开始学习</a>
                                            </div>
                                        </li>
                                            @endforeach

                                    </ul>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>


            </div>


        </div>
    </div>
</div>
@include('user._footer')
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/user.js"></script>
<script src="/static/js/layui/layui.all.js"></script>
    <script>
        layui.config({
            base: '/static/js/'
        }).use(['form'], function () {
        });
    </script>
@endsection
